package string;

/**
 * Created by Veronica on 2017/4/11.
 */
public class StringBuffer01 {
    public static void main(String[] args) {
        StringBuffer sb = new StringBuffer();
        sb.append("Hello");
        sb.insert(0,"i love");
        System.out.println(sb.toString());
        sb.replace(1,3,"wwwwww");
        System.out.println(sb.toString());
//        tell(sb);
//        System.out.println(sb.toString());
//    }
//    public static void tell(StringBuffer s){
//        s.append("i love you ");

    }
}
